package haizhi.fruitmall.shiro.factory;

import java.util.LinkedHashMap;

public class FilterChainDefinitionMapBuilder {
	public LinkedHashMap<String, String> buildFilterChainDefinitionMap() {
		LinkedHashMap<String, String> map = new LinkedHashMap<String, String>();

		// map.put("/login.jsp", "anon");
		// map.put("/user/login.action", "anon");
		// map.put("/index.jsp", "logout");
		// map.put("/user.jsp", "authc,roles[user]");
		// map.put("/admin.jsp", "authc,roles[admin]");
		// map.put("/list.jsp", "anon");
		// map.put("/user/find.action", "anon");
		// map.put("/user/**", "roles[admin]");
		// map.put("/user/add.action", "perms[user:add]");
		// map.put("/user/delete.action", "perms[user:delete]");
		// map.put("/user/update.action", "perms[user:update]");
		// map.put("/user/get.action", "perms[user:get]");
		// map.put("/user/deleteall.action", "perms[user:deleteall]");
		//
		// map.put("/**", "authc");
		return map;
	}
}
